﻿@using ThuySan.Areas.Backend.Models
@model ThuySan.Models.WebUserModel
@{
    Layout = "~/Areas/Backend/Views/Shared/_Layout.cshtml";
    Header header = new Header {
                                       Common = "ViewUserControl_User_Add",
                                       CurentCommon = "Setting",
                                       PageHeader = "Tạo tài khoản mới",
                                       Menulv1 = "02",
                                       Menulv2 = "0203"
                               };
    ViewData[Header.Key] = header;
    ViewBag.Title = "Add User - Admin Control Panel";
    Html.EnableClientValidation();
}
<div class="content-box">
    <div class="content-box-header">
        <h3>
            Tạo tài khoản mới</h3>
    </div>
    <div class="content-box-content">
        @using (Html.BeginForm("Add", "User", FormMethod.Post, new {
                                                                           enctype = "multipart/form-data"
                                                                   }))
        {
            @Html.ValidationMessage("error")
            <div class="input-item">
                <label>
                    UserName</label>
                @Html.TextBoxFor(c => c.UserName, new {
                                                              @class = "text-input medium-input"
                                                      })
                @Html.ValidationMessageFor(c => c.UserName)
            </div>
            <div class="input-item">
                <label>
                    Password</label>
                @Html.PasswordFor(c => c.Password, new {
                                                               @class = "text-input medium-input"
                                                       })
                @Html.ValidationMessageFor(c => c.Password)
            </div>
            <div class="input-item">
                <label>
                    Email</label>
                @Html.TextBoxFor(c => c.Email, new {
                                                           @class = "text-input medium-input"
                                                   })
                @Html.ValidationMessageFor(c => c.Email)
            </div>
            <input type="submit" value="Thêm mới" class="button" />
            <input type="reset" value="Xóa hết" class="button" />
        }
    </div>
</div>